package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperCusDayProfit implements Serializable {
    private Integer id;

    /**
     * 算力类型
     */
    private Integer minerId;

    /**
     * 时间：yyyy-mm-dd
     */
    private String dateStr;

    /**
     * 收益
     */
    private BigDecimal amount;

    /**
     * 电费
     */
    private BigDecimal electricFee;

    /**
     * 管理费
     */
    private BigDecimal managementFee;

    /**
     * 机房费
     */
    private BigDecimal siteFee;

    private Date createTime;

    private Date updateTime;

    /**
     * 客户ID
     */
    private Integer cusId;

    /**
     * 当日算力
     */
    private BigDecimal dailyPower;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 算力类型
     */
    public Integer getMinerId() {
        return minerId;
    }

    /**
     * 算力类型
     */
    public void setMinerId(Integer minerId) {
        this.minerId = minerId;
    }

    /**
     * 时间：yyyy-mm-dd
     */
    public String getDateStr() {
        return dateStr;
    }

    /**
     * 时间：yyyy-mm-dd
     */
    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    /**
     * 收益
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 收益
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 电费
     */
    public BigDecimal getElectricFee() {
        return electricFee;
    }

    /**
     * 电费
     */
    public void setElectricFee(BigDecimal electricFee) {
        this.electricFee = electricFee;
    }

    /**
     * 管理费
     */
    public BigDecimal getManagementFee() {
        return managementFee;
    }

    /**
     * 管理费
     */
    public void setManagementFee(BigDecimal managementFee) {
        this.managementFee = managementFee;
    }

    /**
     * 机房费
     */
    public BigDecimal getSiteFee() {
        return siteFee;
    }

    /**
     * 机房费
     */
    public void setSiteFee(BigDecimal siteFee) {
        this.siteFee = siteFee;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 客户ID
     */
    public Integer getCusId() {
        return cusId;
    }

    /**
     * 客户ID
     */
    public void setCusId(Integer cusId) {
        this.cusId = cusId;
    }

    /**
     * 当日算力
     */
    public BigDecimal getDailyPower() {
        return dailyPower;
    }

    /**
     * 当日算力
     */
    public void setDailyPower(BigDecimal dailyPower) {
        this.dailyPower = dailyPower;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", minerId=").append(minerId);
        sb.append(", dateStr=").append(dateStr);
        sb.append(", amount=").append(amount);
        sb.append(", electricFee=").append(electricFee);
        sb.append(", managementFee=").append(managementFee);
        sb.append(", siteFee=").append(siteFee);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", cusId=").append(cusId);
        sb.append(", dailyPower=").append(dailyPower);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperCusDayProfit other = (SuperCusDayProfit) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMinerId() == null ? other.getMinerId() == null : this.getMinerId().equals(other.getMinerId()))
            && (this.getDateStr() == null ? other.getDateStr() == null : this.getDateStr().equals(other.getDateStr()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getElectricFee() == null ? other.getElectricFee() == null : this.getElectricFee().equals(other.getElectricFee()))
            && (this.getManagementFee() == null ? other.getManagementFee() == null : this.getManagementFee().equals(other.getManagementFee()))
            && (this.getSiteFee() == null ? other.getSiteFee() == null : this.getSiteFee().equals(other.getSiteFee()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCusId() == null ? other.getCusId() == null : this.getCusId().equals(other.getCusId()))
            && (this.getDailyPower() == null ? other.getDailyPower() == null : this.getDailyPower().equals(other.getDailyPower()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMinerId() == null) ? 0 : getMinerId().hashCode());
        result = prime * result + ((getDateStr() == null) ? 0 : getDateStr().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getElectricFee() == null) ? 0 : getElectricFee().hashCode());
        result = prime * result + ((getManagementFee() == null) ? 0 : getManagementFee().hashCode());
        result = prime * result + ((getSiteFee() == null) ? 0 : getSiteFee().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCusId() == null) ? 0 : getCusId().hashCode());
        result = prime * result + ((getDailyPower() == null) ? 0 : getDailyPower().hashCode());
        return result;
    }
}